import request from '@/utils/request'

// 查询入库信息列表
export function listEnter(query) {
  return request({
    url: '/enterwarehouse/enter/list',
    method: 'get',
    params: query
  })
}

// 查询入库信息详细
export function getEnter(enterWarehouseId) {
  return request({
    url: '/enterwarehouse/enter/' + enterWarehouseId,
    method: 'get'
  })
}

// 新增入库信息
export function addEnter(data) {
  return request({
    url: '/enterwarehouse/enter',
    method: 'post',
    data: data
  })
}

// 修改入库信息
export function updateEnter(data) {
  return request({
    url: '/enterwarehouse/enter',
    method: 'put',
    data: data
  })
}

// 删除入库信息
export function delEnter(enterWarehouseId) {
  return request({
    url: '/enterwarehouse/enter/' + enterWarehouseId,
    method: 'delete'
  })
}
